﻿<Window x:Class="Skyper.Service.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Skyper Server"
		TextOptions.TextFormattingMode="Display" TextBlock.FontSize="14" Width="Auto" Height="Auto" SizeToContent="WidthAndHeight" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen" WindowStyle="SingleBorderWindow" SnapsToDevicePixels="True" VisualClearTypeHint="Enabled" VisualTextRenderingMode="ClearType">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*" />
			<ColumnDefinition Width="Auto" />
		</Grid.ColumnDefinitions>

		<TextBlock Grid.Column="0" Text="Hostname" Margin="3" />
		<TextBlock Grid.Column="1" Text="Port"  Margin="3"  />

		<ComboBox Grid.Row="1" x:Name="comboHostname"  IsEditable="True" Margin="3" MinWidth="180" SelectionChanged="comboHostname_SelectionChanged">
			<ComboBox.ItemTemplate>
				<DataTemplate>
					<TextBlock Text="{Binding Name}" />
				</DataTemplate>
			</ComboBox.ItemTemplate>
		</ComboBox>
		<TextBox Grid.Row="1" x:Name="textPort" Grid.Column="1" Margin="3" Width="60" TextChanged="textPort_TextChanged" />
		<CheckBox x:Name="checkAny" Grid.Row="3" Grid.Column="0" Content="Use any IP available" VerticalAlignment="Center" Margin="3" Checked="checkAny_Checked" Unchecked="checkAny_Unchecked" />
		<ToggleButton x:Name="buttonState" Content="Status" Grid.Row="2" HorizontalAlignment="Stretch" Margin="4"  Grid.Column="2" Checked="buttonState_Checked" Unchecked="buttonState_Unchecked" />
	</Grid>
</Window>
